package com.itheima.goods.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * goods实体类
 *
 * @author itheima
 */
@TableName("tb_goods")
public class Goods implements Serializable {
    @TableId
    @ApiModelProperty("商品id")
    private Integer id;//商品id


    @ApiModelProperty("商品条码")
    private String sn;//商品条码
    @ApiModelProperty("商品名称")
    private String name;//商品名称
    @ApiModelProperty("描述")
    private String caption;//描述
    @ApiModelProperty("价格（分）")
    private Integer price;//价格（分）
    @ApiModelProperty("库存数量")
    private Integer num;//库存数量
    @ApiModelProperty("商品图片")
    private String image;//商品图片
    @ApiModelProperty("商品图片列表")
    private String images;//商品图片列表
    @ApiModelProperty("category")
    private String category;//category
    @ApiModelProperty("品牌名称")
    private String brand;//品牌名称
    @ApiModelProperty("规格")
    private String spec;//规格
    @ApiModelProperty("销量")
    private Integer saleNum;//销量
    @ApiModelProperty("评论数")
    private Integer commentNum;//评论数
    @ApiModelProperty("是否上架")
    private String isMarketable;//是否上架
    @ApiModelProperty("商品状态 0-未审核，1-已审核，2-审核未通过")
    private String status;//商品状态 0-未审核，1-已审核，2-审核未通过
    @ApiModelProperty("创建时间")
    private java.util.Date createtime;//创建时间
    @ApiModelProperty("更新时间")
    private java.util.Date updatetime;//更新时间


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public String getIsMarketable() {
        return isMarketable;
    }

    public void setIsMarketable(String isMarketable) {
        this.isMarketable = isMarketable;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public java.util.Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(java.util.Date createtime) {
        this.createtime = createtime;
    }

    public java.util.Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(java.util.Date updatetime) {
        this.updatetime = updatetime;
    }


}
